package bean.circular.dependency.earlySingleton;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/4/9 7:15 下午
 * @Version 1.0
 * @Description
 */
public class EarlySingleObjectsTest {




	/**
	 * 测试二级缓存意义
	 */
	@Test
	public void testAnnotation() {
		ApplicationContext context
				= new ClassPathXmlApplicationContext("bean.circular.dependency/earlySingleton.xml");
		A a = context.getBean("a", A.class);
		B b = context.getBean("b", B.class);
		C c = context.getBean("c", C.class);
	}
}
